package com.muse.aaa;

import java.lang.reflect.Method;

public class SyntheticTest {
    public static void main(String[] args) {
        User user = new User();
        user.age = 1;
        Method[] methods = User.class.getDeclaredMethods();
        for (Method method : methods)
            System.out.println(method.toString() + ", " + method.isSynthetic());
    }

    static class User {
        private int age;
        private String name;
        public User() {}
        public User(int age, String name) {this.age = age;this.name = name;}
        public int getAge() {return age;}
        public void setAge(int age) {this.age = age;}
        public String getName() {return name;}
        public void setName(String name) {this.name = name;}
    }
}